﻿<local:DocumentBase x:Class="WPFExcelReport.YGRAV95"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS"
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF"
                    xmlns:MF="clr-namespace:WPFExcelReport;assembly=TICC_MKRF"
                    xmlns:MU="clr-namespace:WPFExcelReport;assembly=TABAUFM"
                    xmlns:MCO="clr-namespace:WPFExcelReport;assembly=TICC_ABPOS_MCO"
                    xmlns:VVT="clr-namespace:WPFExcelReport;assembly=TVVTLIEF"
                    xmlns:VV="clr-namespace:WPFExcelReport;assembly=TVVLIEF" 
                    xmlns:VR="clr-namespace:WPFExcelReport;assembly=TVRPOS"
                    xmlns:VP="clr-namespace:WPFExcelReport;assembly=TVVPACK"
                     xmlns:GV="clr-namespace:WPFExcelReport;assembly=TGPACK"
                    xmlns:GS="clr-namespace:WPFExcelReport;assembly=TGSDAT"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"
                    xmlns:VAK="clr-namespace:WPFExcelReport;assembly=TVAKDBEZ"
                    xmlns:STK="clr-namespace:WPFExcelReport;assembly=TICC_STOCK"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                     xmlns:me="clr-namespace:WPFExcelReport"
                    FontSize="12" 
                    Name="TV"
                    Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:TextTrimmingConverter x:Key="Trim"/>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" >
            <WrapPanel>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Button Grid.Column="0" Height="20"  Width="20" Margin="0,0,0,0"   IsEnabled="True"   >
                        <Button.Background>
                            <ImageBrush  ImageSource="/ImagePackage;component/Images/Convert.png" />
                        </Button.Background>
                    </Button>
                    <TextBlock Grid.Column="1" Text="{Binding Source={Localization:Translate Word=生产}}"></TextBlock>
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Button Grid.Column="0" Height="20"  Width="20" Margin="10,0,0,0"   IsEnabled="True" Click="btnDZoomIn_Click">
                        <Button.Background>
                            <ImageBrush  ImageSource="/ImagePackage;component/Images/zoom_in.png" />
                        </Button.Background>
                    </Button>
                    <TextBlock Grid.Column="1" Text="{Binding Source={Localization:Translate Word=放大}}"></TextBlock>
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Button Grid.Column="0" Height="20"  Width="20" Margin="10,0,0,0"   IsEnabled="True" Click="btnDZoomOut_Click">
                        <Button.Background>
                            <ImageBrush  ImageSource="/ImagePackage;component/Images/zoom_out.png" />
                        </Button.Background>
                    </Button>
                    <TextBlock Grid.Column="1" Text="{Binding Source={Localization:Translate Word=缩小}}"></TextBlock>
                </Grid>
            </WrapPanel>
        </StackPanel>
        <VKP:TPVK03   Name="cVK03" Grid.Row="1"  Grid.Column="0" Grid.ColumnSpan="3"
                      HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
        <Grid  Grid.Row="2" Name="vwVKP" Grid.Column="0" Grid.ColumnSpan="3">
            <Grid.RowDefinitions>
                <RowDefinition   Height="Auto" />
                <RowDefinition   Height="1*" />
            </Grid.RowDefinitions> 
            <TabControl Grid.Row="1" >
                <TabItem Header="生产明细">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"/>
                        </Grid.ColumnDefinitions>
                        <MF:TSTEPQTY   AUF="{Binding AUF,ElementName=cVK03}"  Grid.Column="1" />
                        <ex:AniScrollViewer   Grid.Column="0" Name="MasterViewer" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"></RowDefinition>
                                    <RowDefinition Height="1*"></RowDefinition>
                                </Grid.RowDefinitions>
                                <WrapPanel Grid.Row="0">
                                    <TextBlock  Text="销售单" ></TextBlock>
                                    <TextBlock  Text="{Binding Path=AUF,ElementName=cVK03}" ></TextBlock>
                                </WrapPanel>
                                <MU:TAB52  Grid.Row="1"   AUF="{Binding Path=AUF,ElementName=cVK03}" VerticalAlignment="Center" />
                            </Grid>
                        </ex:AniScrollViewer>
                    </Grid>
                </TabItem>
                <TabItem Header="产量">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="2*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>
                        <MF:TPAV95 Grid.Row="0" Grid.Column="0"  MaxHeight="600" 
                           Height="Auto"                           
                           VKP="{Binding Path=VKP,ElementName=cVK03}"  
                           x:Name="vwAV95"/>
                        <MF:TPAV33  Grid.Row="0"  Grid.Column="1"
                             x:Name="vwAV33" 
                            JOBID="{Binding Path=JOBID,ElementName=vwAV95, Mode=TwoWay}" 
                            />
                    </Grid>
                </TabItem>
                <TabItem Header="发票明细">
                    <Grid Grid.Row="1"  Visibility="{Binding IsVR,ElementName=TV,Converter={StaticResource bv}}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="2*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>
                        <!--VR:TVR05 VKP="{Binding Path=VKP,ElementName=cVK03}" /-->
                    </Grid>
                </TabItem>
                <TabItem Header="成品仓库/发货">
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <STK:TGBVK Grid.Column="0"/>
                        <VVT:TVV03 Grid.Column="1"  VKP="{Binding Path=AUF,ElementName=cVK03}" />
                    </Grid>
                </TabItem>
                <TabItem Header="品种明细">

                    <Grid Grid.Row="1">
                        <Grid.RowDefinitions>
                            <RowDefinition  Height="Auto" />
                            <RowDefinition Height="1*" />
                        </Grid.RowDefinitions>
                        <VF:TVA10 Grid.Row="0" ORDERNUM="{Binding Path=VART,ElementName=cVK03}"/>
                        <VAK:TVA30 Grid.Row="1" ORDERNUM="{Binding Path=VART,ElementName=cVK03}"/> 
                    </Grid>
                </TabItem>
                <TabItem Header="成本明细">
                    <Grid Grid.Row="1" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="2*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>
                        <!--MCO:TMCO03 AUF="{Binding Path=AUF,ElementName=cVK03}"/-->
                    </Grid>
                </TabItem>
            </TabControl> 
           
        </Grid> 
    </Grid>
</local:DocumentBase>
    